home *** CD-ROM | disk | FTP | other *** search
/ Almathera Ten Pack 3: CDPD 3 / Almathera Ten on Ten - Disc 3: CDPD3.iso / fish / 001-100 / 001-025 / 003 / cforth / makefile < prev    next >
Makefile  |  1995-03-17  |  1KB  |  49 lines

  1. CC = cc
  2.  
  3. test :        forth.core forth
  4.  
  5. forth :        forth.o prims.o
  6.         $(CC) -o forth forth.o prims.o
  7.  
  8. forth.o :    forth.c common.h forth.h prims.h
  9.         $(CC) -c forth.c
  10.  
  11. prims.o :    prims.c forth.h prims.h
  12.         $(CC) -c prims.c
  13.  
  14. all :        forth forth.core l2b b2l
  15.  
  16. nf :        nf.o lex.yy.o
  17.         $(CC) -o nf nf.o lex.yy.o
  18.  
  19. nf.o :        nf.c forth.lex.h common.h
  20.         $(CC) -c nf.c
  21.  
  22. # A current bug in the Lattice C compiler on the AMIGA prevents it
  23. # from compiling the lex.yy.c file.  This means that the nf program
  24. # will not yet run on an AMIGA under Lattice C, and the resources of
  25. # a unix system will be required to produce nf and forth.core.
  26. lex.yy.o :    lex.yy.c forth.lex.h
  27.         $(CC) -c lex.yy.c
  28.  
  29. lex.yy.c :    forth.lex
  30.         -mv lex.yy.c lex.yy.c.old
  31.         lex forth.lex
  32.         rm -f lex.tmp
  33.         sed "s/yylex(){/TOKEN *yylex(){/" lex.yy.c > lex.tmp
  34.         mv -f lex.tmp lex.yy.c
  35.  
  36. forth.core :    nf forth.dict
  37.         nf < forth.dict
  38.  
  39. # l2b : convert a line file to a block file. Usage: l2b < linefile > blockfile
  40. l2b :        l2b.c
  41.         $(CC) -o l2b l2b.c
  42.  
  43. # b2l: convert a block file to a line file. Usage: b2l < blockfile > linefile
  44. b2l :        b2l.c
  45.         $(CC) -o b2l b2l.c
  46.  
  47. # forth.line and forth.block are not included here, because you can't tell
  48. # which one is more recent. To make one from the other, use b2l and l2b.
  49.